const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      // '/api': {
      //   target: 'https://mock.presstime.cn/mock/663dc446d59f9a21eb4d69d2/movieapi',
      //   changeOrigin: true,
      //   pathRewrite: {
      //     '^/api': ''
      //   }
      // },
      '/coffees': {
        target: 'http://localhost:3004',
        changeOrigin: true,
        pathRewrite: {
          '^/coffees': ''
        }
      }
    }
  }
})
